package edu.xidian.bdilab.jrbigdata.controller.bank;

import edu.xidian.bdilab.jrbigdata.controller.response.ResponseResult;
import edu.xidian.bdilab.jrbigdata.service.bank.bankStatics.BankStaticsService;

import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangmmmmm
 * @create 2020-12-04 16:10
 */
@CrossOrigin
@RestController
@Api(tags = {"BankStatics-银行业务统计"})
public class BankStaticsController {
    @Autowired
    BankStaticsService bankStaticsService;

    @PostMapping(value = "bank/getBankStatics")
    ResponseResult getBankStatics(@RequestParam String bankName){
        ResponseResult responseResult =bankStaticsService.getBankStatics(bankName);
        return responseResult;
    }

}
